﻿@namespace BulmaRazor.Components

@inherits IconBase

<span @attributes="Attributes" class="@classes">
    <i class="@IconClass"></i>
</span>

@code {
    /// <summary>
    /// 类
    /// </summary>
    string classes => CssBuilder.Default("icon")
        .AddClassFromAttributes(Attributes)
        .AddClass("is-small", IsSmall)
        .AddClass("is-medium", IsMedium)
        .AddClass("is-large", IsLarge)
        .AddClass(Color.ToTextColor(), Color.Value)
        .AddClass("is-left", IsLeft)
        .AddClass("is-right", IsRight)
        .Build();
    /// <summary>
    /// icon 类名
    /// </summary>
    [Parameter]
    public string IconClass { get; set; }

}
